﻿@model IEnumerable<HanGu.Entity.OperationLogDTO>
@{
    Layout = null;
    int i = 1;
    ViewBag.ViewTitle = "操作日志";
    var SearchParma = ViewData["SearchParma"] as HanGu.Entity.UniversallySearchParam;
}
<form id="pagerForm" method="get" action="/OperationLog/Default/index?action=page&OpID=@ViewData["OperateID"]">
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
<input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
<input type="hidden" name="Title" value="@SearchParma.Ttile" />
<input type="hidden" name="Lectcher" value="@SearchParma.Lectcher" />
<input type="hidden" name="Creator" value="@SearchParma.Creator" />
<input type="hidden" name="StarTime" value="@SearchParma.StarDateTime" />
<input type="hidden" name="EndTime" value="@SearchParma.EndDateTime" />
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="Form_@ViewData["CurrentController"]" action="/OperationLog/Default/index?action=search&OpID=@ViewData["OperateID"]"
    method="post">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    模块：
                </td>
                <td>
                    @Html.TextBox("Title", SearchParma.Ttile)
                </td>
                <td>
                    操作人：
                </td>
                <td>
                    @Html.TextBox("Creator", SearchParma.Creator)
                </td>
                <td>
                    描述：
                </td>
                <td>
                    @Html.TextBox("Lectcher", SearchParma.Lectcher)
                </td>
                <td>
                    操作时间：
                </td>
                <td>
                    @Html.TextBox("StarTime", SearchParma.StarDateTime, new { @class = "date", format = "yyyy-MM-dd",@maxDate="{%y}-%M-{%d-1}", @readonly = "true" })
                </td>
                <td>
                    ~
                    @Html.TextBox("EndTime", SearchParma.EndDateTime, new { @class = "date", format = "yyyy-MM-dd",@maxDate="{%y}-%M-{%d-1}", @readonly = "true" })
                </td>
                <td align="right">
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="submit" name="submit">
                                            检索</button></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</div>
<div class="pageContent">
    @Html.Partial("Buttons")
    <table class="table" width="100%" layouth="170">
        <thead>
            <tr class="header">
                <th>
                    序号
                </th>
                <th>
                    模块
                </th>
                <th>
                    地址
                </th>
                <th>
                    描述
                </th>
                <th>
                    提交方式
                </th>
                <th>
                    操作人
                </th>
                <th>
                    操作时间
                </th>
            </tr>
        </thead>
        @foreach (var item in Model)
        {            
            <tr target="OperationLog_id" rel="@item.ID" >
                <td>
                    @i
                </td>
                <td>
                    @item.ModuleName
                </td>
                <td title="Parameters:@item.Parameters">
                    @item.URL
                </td>
                <td>
                    @item.Detail
                </td>
                <td>
                    @item.OperateAction
                </td>
                <td>
                    @item.Operater
                </td>
                <td>
                    <span formatdate="yyyy-MM-dd HH:mm">
                        @item.OpTime
                    </span>
                </td>
            </tr>
            i += 1;
        }
    </table>
</div>
<div class="panelBar">
    <div class="pages">
        <span>共【@ViewData["RowCount"] 】条,每页显示【@ViewData["pageSize"] 】条</span>
    </div>
    <div class="pagination" targettype="navTab" totalcount="@ViewData["RowCount"] "
            numperpage="@ViewData["pageSize"] " pagenumshown="10" currentpage="@Request["pageNum"] ">
    </div>
</div>
